home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ccccooooppppyyyymmmmssssgggg((((DDDD3333)))) ccccooooppppyyyymmmmssssgggg((((DDDD3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- _cccc_oooo_pppp_yyyy_mmmm_ssss_gggg - copy a message
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_ssss_tttt_rrrr_eeee_aaaa_mmmm_...._hhhh_>>>>
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_dddd_dddd_iiii_...._hhhh_>>>>
- _mmmm_bbbb_llll_kkkk______tttt _****_cccc_oooo_pppp_yyyy_mmmm_ssss_gggg_((((_mmmm_bbbb_llll_kkkk______tttt _****_m_p_))))_;;;;
-
- AAAArrrrgggguuuummmmeeeennnnttttssss
- _m_p Pointer to the message to be copied.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _cccc_oooo_pppp_yyyy_mmmm_ssss_gggg forms a new message by allocating new message blocks, copies the
- contents of the message referred to by _m_p (using the _cccc_oooo_pppp_yyyy_bbbb(D3) function),
- and returns a pointer to the new message.
-
- RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
- On success, _cccc_oooo_pppp_yyyy_mmmm_ssss_gggg returns a pointer to the new message. On failure, it
- returns a _NNNN_UUUU_LLLL_LLLL pointer.
-
- UUUUSSSSAAAAGGGGEEEE
- LLLLeeeevvvveeeellll
- Base or Interrupt.
-
- SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn CCCCoooonnnnssssttttrrrraaaaiiiinnnnttttssss
- Does not sleep.
-
- Driver-defined basic locks, read/write locks, and sleep locks may be held
- across calls to this function.
-
- EEEExxxxaaaammmmpppplllleeeessss
- The routine _llll_cccc_tttt_oooo_uuuu_cccc converts all the lower case ASCII characters in the
- message to upper case. If the reference count is greater than one (line
- 8), then the message is shared, and must be copied before changing the
- contents of the data buffer. If the call to _cccc_oooo_pppp_yyyy_mmmm_ssss_gggg fails (line 9), we
- return _NNNN_UUUU_LLLL_LLLL (line 10). Otherwise, we free the original message (line
- 11). If the reference count was equal to one, the message can be
- modified. For each character (line 16) in each message block (line 15),
- if it is a lower case letter, we convert it to an upper case letter (line
- 18). When done, we return a pointer to the converted message (line 21).
-
- _1111 _mmmm_bbbb_llll_kkkk______tttt _****_llll_cccc_tttt_oooo_uuuu_cccc_((((_mmmm_pppp_))))
- _2222 _mmmm_bbbb_llll_kkkk______tttt _****_mmmm_pppp_;;;;
- _3333 _{{{{
- _4444 _mmmm_bbbb_llll_kkkk______tttt _****_cccc_mmmm_pppp_;;;;
- _5555 _mmmm_bbbb_llll_kkkk______tttt _****_tttt_mmmm_pppp_;;;;
- _6666 _uuuu_cccc_hhhh_aaaa_rrrr______tttt _****_cccc_pppp_;;;;
- _7777
- _8888 _iiii_ffff _((((_mmmm_pppp_----_>>>>_bbbb______dddd_aaaa_tttt_aaaa_pppp_----_>>>>_dddd_bbbb______rrrr_eeee_ffff _>>>> _1111_)))) _{{{{
- _9999 _iiii_ffff _((((_((((_cccc_mmmm_pppp _==== _cccc_oooo_pppp_yyyy_mmmm_ssss_gggg_((((_mmmm_pppp_))))_)))) _====_==== _NNNN_UUUU_LLLL_LLLL_))))
- _1111_0000 _rrrr_eeee_tttt_uuuu_rrrr_nnnn_((((_NNNN_UUUU_LLLL_LLLL_))))_;;;;
- _1111_1111 _ffff_rrrr_eeee_eeee_mmmm_ssss_gggg_((((_mmmm_pppp_))))_;;;;
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ccccooooppppyyyymmmmssssgggg((((DDDD3333)))) ccccooooppppyyyymmmmssssgggg((((DDDD3333))))
-
-
-
- _1111_2222 _}}}} _eeee_llll_ssss_eeee _{{{{
- _1111_3333 _cccc_mmmm_pppp _==== _mmmm_pppp_;;;;
- _1111_4444 _}}}}
- _1111_5555 _ffff_oooo_rrrr _((((_tttt_mmmm_pppp _==== _cccc_mmmm_pppp_;;;; _tttt_mmmm_pppp_;;;; _tttt_mmmm_pppp _==== _tttt_mmmm_pppp_----_>>>>_bbbb______nnnn_eeee_xxxx_tttt_)))) _{{{{
- _1111_6666 _ffff_oooo_rrrr _((((_cccc_pppp _==== _tttt_mmmm_pppp_----_>>>>_bbbb______rrrr_pppp_tttt_rrrr_;;;; _cccc_pppp _<<<< _tttt_mmmm_pppp_----_>>>>_bbbb______wwww_pppp_tttt_rrrr_;;;; _cccc_pppp_++++_++++_)))) _{{{{
- _1111_7777 _iiii_ffff _((((_((((_****_cccc_pppp _<<<<_==== _''''_zzzz_''''_)))) _&&&&_&&&& _((((_****_cccc_pppp _>>>>_==== _''''_aaaa_''''_))))_))))
- _1111_8888 _****_cccc_pppp _----_==== _0000_xxxx_2222_0000_;;;;
- _1111_9999 _}}}}
- _2222_0000 _}}}}
- _2222_1111 _rrrr_eeee_tttt_uuuu_rrrr_nnnn_((((_cccc_mmmm_pppp_))))_;;;;
- _2222_2222 _}}}}
-
- RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
- _aaaa_llll_llll_oooo_cccc_bbbb(D3), _cccc_oooo_pppp_yyyy_bbbb(D3), _mmmm_ssss_gggg_bbbb(D4)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-